wayland: Don't crash with offscreen windows
authorMatthias Clasen <mclasen@redhat.com>
Sat, 5 Mar 2016 01:01:57 +0000 (20:01 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 5 Mar 2016 01:04:43 +0000 (20:04 -0500)
commitaadbabf9987705be959074f97f923cc4923b8d6a
tree11ff752b37f16fca1b3872c5b36358f2db170a93
parenteef31532650e64f542d53508cb5137312bc4af39
wayland: Don't crash with offscreen windows

Use gdk_window_get_effective_toplevel when looking for
a suitable transient parent, to skip over offscreen windows
that we might encounter in the window tree. This fixes
a crash in glade.

https://bugzilla.gnome.org/show_bug.cgi?id=763110
gdk/wayland/gdkwindow-wayland.c